/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[欢迎加盟知启蒙，一起邂逅框架梦]
 * 
 * https://www.zhiqim.com/gitcan/zhiqim/zhiqim_account.htm
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.zhiqim.account.dbo.user;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 用户测试表 对应表《USER_TESTING》
 */
@AnAlias("UserTesting")
@AnNew
@AnTable(table="USER_TESTING", key="USER_ID", type="InnoDB")
public class UserTesting implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="USER_ID", type="long", notNull=true)    private long userId;    //1.用户编号
    @AnTableField(column="TESTING_STATUS", type="byte", notNull=true)    private int testingStatus;    //2.用户测试状态，0:正常，1停用
    @AnTableField(column="TESTING_URL", type="string,128", notNull=true)    private String testingUrl;    //3.用户测试URL

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getUserId()
    {
        return userId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }

    public int getTestingStatus()
    {
        return testingStatus;
    }

    public void setTestingStatus(int testingStatus)
    {
        this.testingStatus = testingStatus;
    }

    public String getTestingUrl()
    {
        return testingUrl;
    }

    public void setTestingUrl(String testingUrl)
    {
        this.testingUrl = testingUrl;
    }

}
